package cn.diaomin.service.impl;

import cn.diaomin.dao.WorkingDao;
import cn.diaomin.dao.impl.WorkingDaoImpl;
import cn.diaomin.entity.Working;
import cn.diaomin.service.WorkingService;

import java.util.List;

public class WorkingServiceImpl implements WorkingService {
    WorkingDao wd = new WorkingDaoImpl();

    @Override
    public List<Working> getAll() {
        return wd.getAll();
    }

    @Override
    public int getCount(String title) {
        return wd.getCount(title);
    }

    @Override
    public Working getOne(int id) {
        return wd.getOne(id);
    }

    @Override
    public int add(Working working) {
        return wd.add(working);
    }
}
